﻿@using ZBJF.Warranty.WebProvider
<div id="insuranceOrderCheckLogDiv" style="position: absolute; z-index: 999; display: none; background: #f9f9f9">
    <h5 class="padding-l-20" style="background:#0088cc;color:#fff;margin:0;padding:5px">审核日志</h5>
    <table id="insuranceOrderCheckLog" class="table table-striped table-bordered table-hover" partiallist="false" style="width: 800px;margin:0">
        <thead>
            <tr>
                <th width="20">序号</th>
                <th width="100px">内容</th>
                <th width="230px">审核时间</th>
                <th>备注</th>
                <th width="166px">审核人</th>
            </tr>
        </thead>
        <tbody></tbody>
    </table>
</div>
<script type="text/javascript">
    function showInsuranceOrderCheckLog(insuranceOrderId, obj) {
        $("#insuranceOrderCheckLogDiv").css("display", "block");
        obj.onmousemove = function (e) {
            e = e || $(obj).event;
            var insuranceOrderCheckLogDiv = document.getElementById("insuranceOrderCheckLogDiv");
            insuranceOrderCheckLogDiv.style.top = (e.clientY) + "px";
            insuranceOrderCheckLogDiv.style.left = (e.clientX+12) + "px";
        }
        $.ajax({
            url: "/InsuranceOrder/GetInsuranceOrderCheckLog?insuranceOrderId=" + insuranceOrderId,
            type: "Post",
            success: function (data) {
                $("#insuranceOrderCheckLog tbody").html("");
                var list = data.logList;
                var html = "";
                if (list && list.length > 0) {
                    for (var i = 0; i < list.length; i++) {
                        var log = list[i];
                        html += "<tr><td>" + (i + 1) + "</td>";
                        html += "<td>" + log.CheckResult + "</td>";
                        html += "<td>" + log.CheckTime + "</td>";
                        html += "<td>" + log.CheckRemark + "</td>";
                        html += "<td>" + log.CheckUserName+"("+log.CheckUserAccount+")" + "</td></tr>";}
                }
                $("#insuranceOrderCheckLog tbody").append(html);
            },
            error:function(data) {
            }
        });
    }
    function hideInsuranceOrderCheckLog() {
        $("#insuranceOrderCheckLogDiv").hide();
        $("#insuranceOrderCheckLog tbody").html("");
    }
</script>

